<html>
<head><meta charset="utf-8"><title>Chaining hints are too verbose · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html">Chaining hints are too verbose</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="225188293"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Chaining%20hints%20are%20too%20verbose/near/225188293" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html#225188293">(Feb 04 2021 at 16:53)</a>:</h4>
<p>There's code that avoids including default type parameters in inlay hints, but it doesn't seem to be working right:</p>
<p><a href="/user_uploads/4715/svH2TC2UiGKA2m6l0gVqnctk/screenshot-2021-02-04-175244.png">screenshot-2021-02-04-175244.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/svH2TC2UiGKA2m6l0gVqnctk/screenshot-2021-02-04-175244.png" title="screenshot-2021-02-04-175244.png"><img src="/user_uploads/4715/svH2TC2UiGKA2m6l0gVqnctk/screenshot-2021-02-04-175244.png"></a></div>



<a name="225188329"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Chaining%20hints%20are%20too%20verbose/near/225188329" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html#225188329">(Feb 04 2021 at 16:53)</a>:</h4>
<p>Ah nevermind this is <code>FxHashMap</code>, not <code>HashMap</code></p>



<a name="225188411"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Chaining%20hints%20are%20too%20verbose/near/225188411" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html#225188411">(Feb 04 2021 at 16:54)</a>:</h4>
<p>yeah, thses are aliases</p>



<a name="225188456"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Chaining%20hints%20are%20too%20verbose/near/225188456" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html#225188456">(Feb 04 2021 at 16:54)</a>:</h4>
<p>I guess finding the shortest-possible type alias to display is fairly difficult</p>



<a name="225188790"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Chaining%20hints%20are%20too%20verbose/near/225188790" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html#225188790">(Feb 04 2021 at 16:56)</a>:</h4>
<p>Maybe: I bit my tongue badly while reading types and programming languages during lunch today, I am scared to open the book to check :D</p>



<a name="225198431"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Chaining%20hints%20are%20too%20verbose/near/225198431" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html#225198431">(Feb 04 2021 at 18:05)</a>:</h4>
<p>there's an issue about trying to keep the user-specified type alias as far as possible. don't know if it would be possible past the <code>entry</code> call though</p>



<a name="225198638"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Chaining%20hints%20are%20too%20verbose/near/225198638" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Chaining.20hints.20are.20too.20verbose.html#225198638">(Feb 04 2021 at 18:07)</a>:</h4>
<p>ah wait, sure it would, that's just another FxHashMap</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>